package com.mwy.springbootrabbitmq.amqp;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "fanout01")
public class ReceiverFanout01 {

    @RabbitHandler
    public void hand(String message){
        System.out.println("fanout01消费者接收消息："+message);
    }
}
